package org.movee.spring.data.hugegraph.annotation;

import org.movee.spring.data.hugegraph.schema.EdgeDirection;
import org.movee.spring.data.hugegraph.schema.Multiplicity;
import org.springframework.data.annotation.Persistent;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Persistent
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface EdgeIncident {

    String label() default "";

    Multiplicity multiplicity() default Multiplicity.MULTI;

    EdgeDirection direction() default EdgeDirection.OUTGOING;

}
